package com.bsoft.gol.hcs.enumcase;

/**
 * @Author: lanyu
 * @Description:
 * @Date: create in 2022/7/20 14:36
 */
public enum CrucialTypeEnum {

    INSPECT("4", "检验"),
    EXAM("5", "检查"),
    SIGN("6", "体征"),
    PATHOLOGY("7", "病理");

    private final String type;

    private final String name;

    CrucialTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public static CrucialTypeEnum getEnumByKey(Byte type) {
        for (CrucialTypeEnum temp : CrucialTypeEnum.values()) {
            if (temp.getType().equals(type)) {
                return temp;
            }
        }
        return null;
    }

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }
}
